package com.yunji.order.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author : peter-zhu
 * @date : 2025/3/12 09:04
 * @description : TODO
 **/
@Data
public class OrderDetailDTO {
    @ApiModelProperty("商品id")
    @NotNull(message = "商品id不能为空")
    private Long productId;

    @Max(100)
    @Min(1)
    @ApiModelProperty("商品数量")
    @NotNull(message = "商品数量不能为空")
    private Integer productNum;
}
